<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023-06-05
  Time: 11:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/insert" method="post">
    <h1>学生考勤系统</h1>
    <table border="1">
        <tr>
            <th>学生姓名</th>
            <td>
                <select name="brandid">
                    <c:forEach items="${list}" var="xs">
                        <option value="${xs.sid}">
                                ${xs.sname}
                        </option>
                    </c:forEach>
<%--                    <c:forEach items="${list}" var="xs">--%>
<%--                        <option value="${xs.sid}">${xs.sname}</option>--%>
<%--                    </c:forEach>--%>
                </select>
            </td>
        </tr>
        <th>考勤时间</th>
        <th><input type="date" name="time"></th>
        <tr>
            <th>考勤状况</th>
            <td>
                <input type="radio" name="type" value="yi">已到
                <input type="radio" name="type" value="er">迟到
                <input type="radio" name="type" value="san">旷课
            </td>
        </tr>
        <th><input type="submit" value="添加"></th>
    </table>
</form>
</body>
</html>
